﻿using QuanLyThuVien.DAL;
using QuanLyThuVien.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QuanLyThuVien.BLL
{
    //----------------------------------------------------------------------
    //Desc: class xử lý cho bảng CTTK_MuonSach
    //----------------------------------------------------------------------
    public class BLLCTTK_MuonSach
    {
        //----------------------------------------------------------------------
        //Desc: constructor mặc định
        //----------------------------------------------------------------------
        public BLLCTTK_MuonSach()
        { }

        //----------------------------------------------------------------------
        //Desc: Lấy danh sách CTTK_MuonSach
        //----------------------------------------------------------------------
        public List<DTOCTTK_MuonSach> LayCTTKMuonSach(int thang, long nam)
        {
            DALCTTK_MuonSach _dalCTTK_MuonSach = new DALCTTK_MuonSach();
            return _dalCTTK_MuonSach.LayCTTKMuonSach(thang, nam);
        }

        //----------------------------------------------------------------------
        //Desc: Cập nhật CTTK_MuonSach
        //----------------------------------------------------------------------
        public bool CapNhat(DTOCTTK_MuonSach cttkMuonSach)
        {
            DALCTTK_MuonSach _dalCTTK_MuonSach = new DALCTTK_MuonSach();
            return _dalCTTK_MuonSach.CapNhat(cttkMuonSach);
        }
    }
}
